<template name="model">
<!-- 底部菜单 -->
<view class="pos_fixed">
    <view class="tpd-footer tpd-footer2" v-if="[].length > 0">
       <block v-for="(item, index) in []" :key="index">
        <view hover-class="none" @tap.stop="topage" data-obj="custom" :data-idx="index" :class="menu_index == index ? 'tpd-footer-select' : ''"><image :src="menu_index == index ? url + item.pic2 : url + item.pic1"></image><text :style="'color:' + (menu_index == index ? item.navFontColor : '')">{{item.title_name}}</text></view>  
        </block> 
    </view>

    <view class="tpd-footer tpd-footer1" v-if="defaultMenu">
        <view hover-class="none" @tap.stop="topages" data-idx="0" :class="menu_index == 0 ? 'tpd-footer-select' : ''"><image :src="menu_index == 0 ? '/images/home2.png' : '/images/home1.png'"></image><text>首页</text></view>
        <view hover-class="none" @tap.stop="topages" data-idx="1" :class="menu_index == 1 ? 'tpd-footer-select' : ''"><image :src="menu_index == 1 ? '/images/category2.png' : '/images/category1.png'"></image><text>分类</text></view>
        <view hover-class="none" @tap.stop="topages" data-idx="4" :class="menu_index == 4 ? 'tpd-footer-select' : ''"><image :src="menu_index == 4 ? '/images/play2.png' : '/images/play1.png'"></image><text>直播</text></view>
        <view hover-class="none" @tap.stop="topages" data-idx="2" :class="menu_index == 2 ? 'tpd-footer-select' : ''"><image :src="menu_index == 2 ? '/images/cart2.png' : '/images/cart1.png'"></image><text>购物车</text></view>
        <view hover-class="none" @tap.stop="topages" data-idx="3" :class="menu_index == 3 ? 'tpd-footer-select' : ''"><image :src="menu_index == 3 ? '/images/user2.png' : '/images/user1.png'"></image><text>我的</text></view>
    </view>
  </view>
</template>